package com.bytedance.article.common.a;

import android.content.SharedPreferences;

import com.bytedance.frameworks.b.a.ComponentsManifest;
import com.ss.android.bb;
import com.ss.android.cc;
import com.ss.android.common.applog.AppLog;
import com.ss.android.newmedia.BaseApplication;

import org.json.JSONObject;

public final class e implements bb {
    private static e c;
    public a a;
    private boolean b;
    private e() {
        com.bytedance.frameworks.b.a.a.a( com.ss.android.bb.class, this);
        this.b();
    }

    public synchronized static e a() {
        e v0_1;
        if (e.c == null) {
            e.c = new e();
        }
        v0_1 = e.c;
        return v0_1;
    }

    public final void a(SharedPreferences.Editor arg1) {
    }

    public final void a(SharedPreferences arg1) {
    }

    public final void a(boolean arg1) {
    }

    public final boolean a(JSONObject arg4) {
        if (arg4 != null && !this.b) {
            this.b = true;
            if ((arg4.optBoolean("monitor_switch", true)) && this.a != null && !android.support.design.a.isTextEmpty(AppLog.deviceId())) {
                BaseApplication.B();
            }
        }

        return false;
    }

    public final void b() {
        Object v0 = ComponentsManifest.findComponent(cc.class);
        if (v0 != null) {
            this.a(((cc) v0).a());
        }
    }

    public final void c() {
    }

    public final void d() {
    }

    public static final class a {
        public a() {

        }
    }
}

